package com.iyohei.action;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.iyohei.entry.Blog;
import com.iyohei.entry.Comment;
import com.iyohei.entry.LeaveWord2;
import com.iyohei.service.BlogService;
import com.iyohei.service.CommentService;
import com.iyohei.service.LeaveWordService;




/**
 * 留言相关action
 * @author Administrator
 *
 */
@RestController
public class LWordController {
	
	@Autowired
	private LeaveWordService lWordService;
	/**
	 * 获取所有留言列表
	 */
	@RequestMapping(path="/lWord/getList",method= {RequestMethod.POST})
	public List<LeaveWord2> getBlog(HttpServletRequest req,HttpServletResponse res) {
	    return lWordService.getLWordList(0);
	}
	
}
